<!DOCTYPE html>

<head>
    <title>B窗口</title>
</head>

<body style="background-color: red;">
    <button onclick="aa()">新建A窗口</button>
</body>

<script>
    async function aa() {
        await openA()
    }
</script>

</html>